/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.edu.pw.elka.spdb;

/**
 *
 * @author Adam
 */
public class Pentagon {
    int id;
    private Point p1, p2, p3, p4, p5;
    private String nazwa;

    public Pentagon(int id, Point p[], String nazwa) {
        this.id = id;
        this.p1 = p[0];
        this.p2 = p[1];
        this.p3 = p[2];
        this.p4 = p[3];
        this.p5 = p[4];
        this.nazwa = nazwa;
    }

    public int getId() {
        return id;
    }

    public String getNazwa() {
        return nazwa;
    }

    public Point getP1() {
        return p1;
    }

    public Point getP2() {
        return p2;
    }

    public Point getP3() {
        return p3;
    }

    public Point getP4() {
        return p4;
    }

    public Point getP5() {
        return p5;
    }
}
